package com.webAutoTest.common;

import org.openqa.selenium.chrome.ChromeDriver;

import java.time.Duration;

/**
 * @author Dianzhi Han
 * @version 1.0
 * @description: TODO
 * @date 2023/2/26 21:04
 */
public class CommonDriver {
    private static ChromeDriver driver;

    public static ChromeDriver getDriver(){
         if (driver == null){
              driver = new ChromeDriver();
              driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(10));
         }
         return driver;
    }




}
